/**
 * Created by XK-SH on 2017/6/20.
 */
import Vue from 'vue'
import VueResource from 'vue-resource';
Vue.use(VueResource);

export default {
  /**
   * 获取审批方式
   */
  getApprovalWay(){
    return Vue.http.get("/memberActivity/m/approvals/ways");
  },
  /**
   * 获取当前流程定义
   */
  getProcessDefinitions(){
    return Vue.http.get("/memberActivity/m/processdefinitions");
  },

  /**
   * 添加审核人
   */
  addAuditInApply(data){
    return Vue.http.post("/memberInApply/m/addAudit", data);
  },

  /**
   * 添加编辑审批信息
   */
  submitProcessDefinitions(data){
    return Vue.http.put("/memberActivity/m/processdefinitions", data);
  },
}
